/*------------------------------------------------------
                hou_elearningGEN beta v1.0
Author: xtrung.net@gmail.com
Write On: 04/27/2008
Create On:4/13/2012 11:22:47 AM
------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace hou_elearning.Entity
{
    public class Quyen_Chucnang_TacvuEntity
    {
        public Quyen_Chucnang_TacvuEntity()
        {
			m_fk_ichucnang_tacvuid=0;
			m_fk_iquyenid=0;
        }
		private Int64 m_fk_ichucnang_tacvuid;
		public Int64 FK_iChucnang_TacvuID
		{
			get { return m_fk_ichucnang_tacvuid ; }
			set { m_fk_ichucnang_tacvuid = value; }
		}
		private Int16 m_fk_iquyenid;
		public Int16 FK_iQuyenID
		{
			get { return m_fk_iquyenid ; }
			set { m_fk_iquyenid = value; }
		}

        #region Comparison
        public static List<Quyen_Chucnang_TacvuEntity> Sort(List<Quyen_Chucnang_TacvuEntity> list, String SortExpression, String SortDirection)
        {
            string strComparisonAttrb="COMPARISON_"+SortExpression;
            PropertyInfo propInfo= typeof(Quyen_Chucnang_TacvuEntity).GetProperty(strComparisonAttrb);
            if (propInfo != null)
            {
                list.Sort(propInfo.GetGetMethod().Invoke(null,null) as Comparison<Quyen_Chucnang_TacvuEntity>);
                if (SortDirection == "DESC")
                    list.Reverse();
            }
            return list;
        }
        
		public static Comparison<Quyen_Chucnang_TacvuEntity> COMPARISON_FK_iChucnang_TacvuID
		{
			get
			{
				return delegate(Quyen_Chucnang_TacvuEntity entity,Quyen_Chucnang_TacvuEntity other)
				{
					return entity.FK_iChucnang_TacvuID.CompareTo(other.FK_iChucnang_TacvuID);
				};
			}
		}
		public static Comparison<Quyen_Chucnang_TacvuEntity> COMPARISON_FK_iQuyenID
		{
			get
			{
				return delegate(Quyen_Chucnang_TacvuEntity entity,Quyen_Chucnang_TacvuEntity other)
				{
					return entity.FK_iQuyenID.CompareTo(other.FK_iQuyenID);
				};
			}
		}
        #endregion
    }
}
